 <?php 

$username = $_GET['username'];


include("../db/opendb.php");

include("functions.php");



$query = "select ID from Users where Username='".$username."'";
$result = mysql_query($query) or die ("SQL Error".mysql_error());
$row=mysql_fetch_assoc($result);


$query2 = "select ID, Meebo_ID, Plugoo_ID, Jaxtr_ID from User_Settings where ID ='".$row['ID']."'";
$result2 = mysql_query($query2) or die ("SQL Error".mysql_error());

//$num_rows = mysql_num_rows($result2);


//if($num_rows != 0)
//{
$xml = getXML2($result2);

echo $xml;
//}
//else
//{
//echo -1;
//}


?>

